<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>guahao</title>
<style>
dl{ border:1px #000 solid; height:300px; width:12%; float:left; }
dd{ width:96%; height:32%; border:1px #000 solid; margin:auto; }

</style>
</head>
<body>

<?php date_default_timezone_set('Asia/Shanghai');
$date=new Zend_Date();
$binDate=array();
$binDate=$this->b;
$binArray=str_split($binDate);
//Zend_Debug::dump($binArray);
for ($i=0;$i<7;$i++){
	$tDay=$date->add('1', Zend_Date::DAY);
$tDate=$tDay->get(Zend_Date::DATE_MEDIUM);
$weekDay=$date->get(Zend_Date::WEEKDAY_DIGIT);
switch ($weekDay) {
        case 1:
            $tWeekDay = "星期一";
            break;
        case 2:
            $tWeekDay = "星期二";
            break;
        case 3:
            $tWeekDay = "星期三";
            break;
        case 4:
            $tWeekDay= "星期四";
            break;
        case 5:
            $tWeekDay = "星期五";
            break;
        case 6:
            $tWeekDay = "星期六";
            break;
        case 0:
            $tWeekDay = "星期日";
            break;
    }
//echo $weekDay;
$ysbm=$this->ysbm;
//echo $binArray[$weekDay];
    if ($binArray[$weekDay-1]==1){
    	
    	$tHref="<a href=/guahao/fastregister?weekday=$weekDay&ysbm=$ysbm&date=$tDate>挂号</a>";
    }else {$tHref=null;}
	echo "<dl><dd>$tDate</dd>
	<dd>$tWeekDay</dd>
	<dd>$tHref
	</dd>
	</dl>";
}




?>



</body>
</html>
